

// 获取预先设置为环境变量的 APPID 和 SECRET_KEY
var appid = pm.environment.get('app_id')
var secretKey = pm.environment.get('secret_key')

console.log("secretKey==", secretKey)

var data = pm.request.body.raw;
console.log("data=", data);
var sign = pm.execute('sign.py', [data, secretKey]);
// 获取 Query 参数对象
var queryParams = pm.request.url.query
pm.environment.set("sign", sign);

console.log(sign);

queryParams.upsert({
  key: 'sign',
  value: sign
})